/**
 * <copyright>
 * </copyright>
 *
 * $Id$
 */
package moduleView;

import java.util.Map;

import org.eclipse.emf.common.util.DiagnosticChain;
import org.eclipse.emf.common.util.EList;

/**
 * <!-- begin-user-doc -->
 * A representation of the model object '<em><b>Feature</b></em>'.
 * <!-- end-user-doc -->
 *
 * <p>
 * The following features are supported:
 * <ul>
 *   <li>{@link moduleView.Feature#getType <em>Type</em>}</li>
 *   <li>{@link moduleView.Feature#getDescription <em>Description</em>}</li>
 *   <li>{@link moduleView.Feature#getPriority <em>Priority</em>}</li>
 *   <li>{@link moduleView.Feature#getAggregationFeature <em>Aggregation Feature</em>}</li>
 *   <li>{@link moduleView.Feature#getDependencyFeature <em>Dependency Feature</em>}</li>
 *   <li>{@link moduleView.Feature#getRealization <em>Realization</em>}</li>
 * </ul>
 * </p>
 *
 * @see moduleView.ModuleViewPackage#getFeature()
 * @model annotation="gmf.node label='name'"
 * @generated
 */
public interface Feature extends NodeElement {
	/**
	 * Returns the value of the '<em><b>Type</b></em>' attribute.
	 * The default value is <code>"1"</code>.
	 * The literals are from the enumeration {@link moduleView.Type_Feature}.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of the '<em>Type</em>' attribute isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @return the value of the '<em>Type</em>' attribute.
	 * @see moduleView.Type_Feature
	 * @see #setType(Type_Feature)
	 * @see moduleView.ModuleViewPackage#getFeature_Type()
	 * @model default="1"
	 * @generated
	 */
	Type_Feature getType();

	/**
	 * Sets the value of the '{@link moduleView.Feature#getType <em>Type</em>}' attribute.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @param value the new value of the '<em>Type</em>' attribute.
	 * @see moduleView.Type_Feature
	 * @see #getType()
	 * @generated
	 */
	void setType(Type_Feature value);

	/**
	 * Returns the value of the '<em><b>Description</b></em>' attribute.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of the '<em>Description</em>' attribute isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @return the value of the '<em>Description</em>' attribute.
	 * @see #setDescription(String)
	 * @see moduleView.ModuleViewPackage#getFeature_Description()
	 * @model
	 * @generated
	 */
	String getDescription();

	/**
	 * Sets the value of the '{@link moduleView.Feature#getDescription <em>Description</em>}' attribute.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @param value the new value of the '<em>Description</em>' attribute.
	 * @see #getDescription()
	 * @generated
	 */
	void setDescription(String value);

	/**
	 * Returns the value of the '<em><b>Priority</b></em>' attribute.
	 * The default value is <code>"0"</code>.
	 * The literals are from the enumeration {@link moduleView.Type_Priority}.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of the '<em>Priority</em>' attribute isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @return the value of the '<em>Priority</em>' attribute.
	 * @see moduleView.Type_Priority
	 * @see #setPriority(Type_Priority)
	 * @see moduleView.ModuleViewPackage#getFeature_Priority()
	 * @model default="0"
	 * @generated
	 */
	Type_Priority getPriority();

	/**
	 * Sets the value of the '{@link moduleView.Feature#getPriority <em>Priority</em>}' attribute.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @param value the new value of the '<em>Priority</em>' attribute.
	 * @see moduleView.Type_Priority
	 * @see #getPriority()
	 * @generated
	 */
	void setPriority(Type_Priority value);

	/**
	 * Returns the value of the '<em><b>Aggregation Feature</b></em>' containment reference list.
	 * The list contents are of type {@link moduleView.Feature}.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of the '<em>Aggregation Feature</em>' containment reference list isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @return the value of the '<em>Aggregation Feature</em>' containment reference list.
	 * @see moduleView.ModuleViewPackage#getFeature_AggregationFeature()
	 * @model containment="true"
	 *        annotation="gmf.compartment collapsible='true'"
	 * @generated
	 */
	EList<Feature> getAggregationFeature();

	/**
	 * Returns the value of the '<em><b>Dependency Feature</b></em>' reference list.
	 * The list contents are of type {@link moduleView.Feature}.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of the '<em>Dependency Feature</em>' reference list isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @return the value of the '<em>Dependency Feature</em>' reference list.
	 * @see moduleView.ModuleViewPackage#getFeature_DependencyFeature()
	 * @model annotation="gmf.link label='dependecy Feature' target.decorartion='arrow' style='dash'"
	 * @generated
	 */
	EList<Feature> getDependencyFeature();

	/**
	 * Returns the value of the '<em><b>Realization</b></em>' reference list.
	 * The list contents are of type {@link moduleView.Module}.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of the '<em>Realization</em>' reference list isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @return the value of the '<em>Realization</em>' reference list.
	 * @see moduleView.ModuleViewPackage#getFeature_Realization()
	 * @model annotation="gmf.link label='realization' target.decorartion='arrow' style='dash'"
	 * @generated
	 */
	EList<Module> getRealization();

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @model
	 * @generated
	 */
	boolean validateUniqueName(DiagnosticChain diagnostic, Map<Object, Object> context);

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @model
	 * @generated
	 */
	boolean validateFAHasFeature(DiagnosticChain diagnostic, Map<Object, Object> context);

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @model
	 * @generated
	 */
	boolean validateFAHasModule(DiagnosticChain diagnostic, Map<Object, Object> context);

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @model
	 * @generated
	 */
	boolean validateFCHasFeature(DiagnosticChain diagnostic, Map<Object, Object> context);

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @model
	 * @generated
	 */
	boolean validateHasModule(DiagnosticChain diagnostic, Map<Object, Object> context);
	
		/**
	 * Verifica si el Escenario tiene conexion con algun modulo.
	 * @param  Tabla de hash para marcar que features fueron visitados.
	 * @return  TRUE en caso de que exista tal relacion y FALSE en caso contrario.
	 */
	public boolean scopeAnyModule(Map<String, Object> xVisited);

	/**
	 * Verifica si el Feature tiene una relacion "Realization" con el modulo xTarget.
	 * @param xTarget  Modulo
	 * @param hashVisited
	 * @return  TRUE si existe una relacion entre el feature y el modulo. FALSE en caso contrario.
	 */
	public boolean scopeModule(Module xTarget, Map<String, Object> hashVisited);

} // Feature
